package com.demo.component;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

@Controller
public class ArticleController {
    public String sayHello() {
        return "hello controller";
    }

    @Bean
    public String beanFunc() {
        return "这是@Bean注解";
    }
}
